<include file="Public:header" title="组别管理 - 组别管理" />
<h2>组别管理</h2>
<span>当前共有 <{$count.count}> 个组别</span>
<form method="post" action="<{:U('addGroup?type=1')}>" onSubmit="return post_form('<{:U('addGroup?type=1')}>',this,'addTips');" style="height:40px;">
<div class="fl"><label for="addGroupName">组别名</label><input id="addGroupName" type="text" name="cname" placeholder="组别名" class="text" />
<input type="submit" value="添加组别" class="btn" /></div> <div id="addTips" class="tip fl" style="margin-top: 2px;">添加提示</div>
</form>
<table style="width: 100%;">
  <thead>
    <tr>
      <td style="min-width: 3%;text-align:center;">#</td>
      <td style="text-align:center;">组别名</td>
	  <td style="text-align:center;">操作</td>
    </tr>
  </thead>
  <tbody id="groupsTable">
  <volist name="groups" id="vo" key="i">
    <tr>
      <td style="text-align:center;"><{$vo.id}></td>
      <td style="text-align:center;"><{$vo.cname}></td>
	  <td style="text-align:center;"><a class="editUser" href="<{:U('editGroup?id='.$vo['id'])}>">编辑</a>&nbsp;&nbsp;<a class="delUser" href="javascript:delGroup(1,<{$vo.id}>);">删除</a></td>
    </tr>
  </volist>
  </tbody>
</table>
<div class="pageSwitcher"><{$page}></div>
<include file="Public:footer" />